package com.lebang.service.sys;

import com.lebang.domain.SendEmail;
import com.lebang.example.SendEmailExample;
import com.lebang.mapper.SendEmailMapper;
import com.lebang.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* 用户签到数据更改
* @Author hwq
* @Date 2020-03-27
*/
@Service
public class SendEmailService extends BaseService<SendEmail, Integer, SendEmailExample>{
    @Autowired
    private SendEmailMapper sendEmailMapper;

    public List<SendEmail> selectAll(Long page, Integer limit) {
        page=(page-1)*limit;
        return sendEmailMapper.selectAll(page,limit);
    }

    public int enablebyid(Integer id, String status) {
        return sendEmailMapper.enablebyid(id,status);
    }
}
